---@class Battle.BuffLimitCountCondition:Battle.IBuffCondition
local t = Battle.CreateClass("BuffLimitCountCondition",Battle.IBuffCondition)
Battle.BuffLimitCountCondition = t

function t:ctor(buff,count)
    ---@type Battle.Buffer
    self.buff = buff
    self.count = count
end
function t:Check()
    return self.count > 0
end
function t:Execute()
    self.count = self.count - 1
end
